package com.sky.demo.util;

import cn.hutool.core.date.format.FastDateFormat;

import java.text.DateFormat;
import java.text.DecimalFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.concurrent.atomic.AtomicInteger;

public class IdUtil {


    private static final AtomicInteger num = new AtomicInteger(1);

    private final static String FORMAT_CODE = "000000";
    private final static String MID = "MID";

    public static void main(String[] args) {
        generateId();
    }

    public static void generateId(){
        String s = "u001B"+"123";
        System.out.println(s);
//        LocalDateTime now = LocalDateTime.now(ZoneId.of("+8"));
//        String pattern = "yyyyMMddHHmmss";
//        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);
//        String date = formatter.format(now);
//        int andIncrement = num.getAndIncrement();
//        String newStrNum = String.format("%06d", andIncrement);
//        System.out.println(MID + date + newStrNum);
    }
}
